<?php

namespace App\Model;

use Illuminate\Database\Eloquent\Model;

class OAStaffDept extends Model
{
    protected $table = 'staff_dept';

    //获取部门相关信息
    public function getDeptInfo()
    {
        return $this->hasOne('App\Model\OADept','id','dept_id');
    }
}
